package GUILogica;

import GUI.JIFInicial;
import javax.swing.JOptionPane;

public class Main {
    
    public static void main(String[] args) {
                  
        setLookandFeel();
              
        try{
        
            JIFInicial.getInstance();

        }
        
        catch(Exception e){
        
            JOptionPane.showMessageDialog(null, e.getMessage(), "Error!", JOptionPane.ERROR_MESSAGE);
        
        }
        
    }
    
    public static void setLookandFeel(){
    
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JIFInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }        
    
    }
    
}
